package com.fitness.front.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fitness.front.modal.news.dto.NewsDto;
import com.fitness.front.modal.news.entity.News;
import com.fitness.front.modal.news.params.NewsPageQueryParams;
import com.fitness.front.modal.news.vo.NewsVO;

import java.util.List;

public interface INewsService extends IService<News> {
    Page<NewsVO> getNewsPage(NewsPageQueryParams queryParams);

    boolean addNews(NewsDto equipmentDto);

    boolean updateNews(NewsDto equipmentDto);

    List<NewsVO> getIndexNews();

}
